package com.luban.app;

import com.luban.dao.IndexDao1;
import com.luban.dao.IndexDao3;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import wwl.lsf.annotaion.EnableLsf;

@ComponentScan({"com.luban", "wwl"})
@Configuration
@EnableLsf
//@EnableAspectJAutoProxy
public class Appconfig {

	@Bean
	public IndexDao1 indexDao1() {
		return new IndexDao1();
	}

	@Bean
	public IndexDao3 indexDao() {
		indexDao1();
		return new IndexDao3();
	}
}
